import request from '@/router/axios';
import tenant from "../../views/system/tenant";

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-log/sys-log/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getListAll = (params) => {
  return request({
    url: '/api/blade-log/sys-log/list-all',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getModule = (params) =>{
  return request({
    url:'/api/blade-log/sys-log/get-module',
    method:'get',
    params:{
      system:params
    }
  })
}

export const getCreateUser =(tenantId) =>{
  return request({
    url:'/api/blade-user/get-user-by-tenant-id',
    method:'get',
    params:{
      tenantId
    }
  })
}

export const getTenantId = () =>{
  return request({
    url:'/api/blade-system/tenant/get-tenant',
    method:'get'
  })
}
